package com.hckj.jianzhijia.utils;

import android.app.Notification;
import android.app.NotificationManager;
import android.content.Context;
import android.support.v7.app.NotificationCompat;
import android.widget.RemoteViews;

import com.hckj.jianzhijia.R;

/**
 * Created by 赵奇隆 on 2015-11-09.
 */
public class NotificationUtils {



    public void getDownLoadNotification(Context context){

        NotificationManager nm = (NotificationManager) context.getSystemService(context.NOTIFICATION_SERVICE);
        Notification notification = new Notification();
        notification.defaults |= Notification.DEFAULT_VIBRATE;
        notification.flags = Notification.FLAG_NO_CLEAR;
        RemoteViews remoteView = new RemoteViews(context.getPackageName(),R.layout.layout_noti_down_load);
        remoteView.setTextViewText(R.id.tv_title, "Custom Text");
        remoteView.setProgressBar(R.id.progressBar, 100, 0, false);
        notification.contentView = remoteView;




    }
















}
